import request from "@/utils/request";
import { IQueryParams } from "./data";

// 列表
export async function queryList(data?: IQueryParams): Promise<any> {
	return request({
		url: "/nutrition/admin/nutEvaluate/pageList",
		method: "post",
		data,
	});
}

// 导出
export async function exportExcel(data?: IQueryParams): Promise<any> {
	return request({
		url: "/nutrition/admin/nutEvaluate/downloadExcel",
		method: "post",
		data,
	});
}
//  状态
export async function editStatus(params: { evaluateId: number }): Promise<any> {
	return request({
		url: "/nutrition/admin/nutEvaluate/updateEvaluateStatus",
		method: "get",
		params,
	});
}
